Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump aws-lambda-powertools from 2.43.0 to 3.0.0 in /lambda/src #776

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Sep 23, 2024

Bumps aws-lambda-powertools from 2.43.0 to 3.0.0.

Release notes

Sourced from aws-lambda-powertools's releases.

v2.43.1

Summary

The regression issue caused by PR #4863 has been resolved in this patch release. The issue occurred when working with zero numbers in the Data Source utility's DynamoDBStreamEvent class.

Changes

🌟New features and non-breaking changes

🐛 Bug and hot fixes

🔧 Maintenance

This release was made possible by the following contributors:

@​dependabot, @​dependabot[bot], @​github-actions, @​github-actions[bot], @​leandrodamascena, @​sthulb and @​tlinhart

Changelog

Sourced from aws-lambda-powertools's changelog.

Unreleased

Bug Fixes

  • event_handler: correct URL for OpenAPI spec in Swagger UI (#4930)

Code Refactoring

  • event_handler: correct typo in exception docstring (#4948)

Documentation

  • logger: fix typo for the INFO log_level example (#5039)
  • maintainers: update the maintainers table (#5148)
  • public_reference: add Pushpay as a public reference (#5036)

Features

  • layers: add ARM64 support for ca-west-1 (#4949)

Maintenance

  • ci: new pre-release 2.43.2a5 (#5024)
  • ci: new pre-release 2.43.2a0 (#4946)
  • ci: new pre-release 2.43.2a1 (#4970)
  • ci: new pre-release 2.43.2a2 (#4978)
  • ci: allow sar beta app (#5109)
  • ci: add workflow dispatch for SAR (#5108)
  • ci: new pre-release 2.43.1a2 (#4933)
  • ci: new pre-release 2.43.2a3 (#5003)
  • ci: new pre-release 2.43.2a6 (#5035)
  • ci: new pre-release 2.43.2a4 (#5014)
  • ci: add temporary pipeline for v3 (#5026)
  • deps: bump squidfunk/mkdocs-material from 9919d6e to a73e4bb in /docs (#5022)
  • deps: bump actions/upload-artifact from 4.3.6 to 4.4.0 (#5099)
  • deps: bump actions/setup-python from 5.1.1 to 5.2.0 (#5100)
  • deps: bump github.com/aws/aws-sdk-go-v2/service/lambda from 1.56.4 to 1.57.0 in /layer/scripts/layer-balancer in the layer-balancer group (#5019)
  • deps: bump pypa/gh-action-pypi-publish from 1.9.0 to 1.10.0 (#5110)
  • deps: bump squidfunk/mkdocs-material from 7132ca3 to a2e3a31 in /docs (#5111)
  • deps: bump the layer-balancer group in /layer/scripts/layer-balancer with 3 updates (#4997)
  • deps: bump github.com/aws/aws-sdk-go-v2/service/lambda from 1.57.0 to 1.58.0 in /layer/scripts/layer-balancer in the layer-balancer group (#5052)
  • deps: bump pypa/gh-action-pypi-publish from 1.10.0 to 1.10.1 (#5115)
  • deps: bump docker/setup-qemu-action from 3.0.0 to 3.2.0 (#5047)
  • deps: bump actions/download-artifact from 4.1.7 to 4.1.8 (#5050)
  • deps: bump actions/setup-node from 4.0.2 to 4.0.3 (#5048)
  • deps: bump squidfunk/mkdocs-material from a73e4bb to 7132ca3 in /docs (#5065)

... (truncated)

Upgrade guide

Sourced from aws-lambda-powertools's upgrade guide.


title: Upgrade guide description: Guide to update between major Powertools for AWS Lambda (Python) versions

Migrate to v3 from v2

!!! info "We strongly encourage you to migrate to v3. However, if you still need to upgrade from v1 to v2, you can find the upgrade guide."

We've made minimal breaking changes to make your transition to v3 as smooth as possible.

Quick summary

Area Change Code change required
Pydantic We have removed support for Pydantic v1 No
Parser We have replaced DynamoDBStreamModel AttributeValue with native Python types Yes
Lambda layer Lambda layers are now compiled according to the specific Python version and architecture No
Event Handler We have deprecated the get_header_value function. Yes
Batch Processor @batch_processor and @async_batch_processor decorators are now deprecated Yes
Event Source Data Classes We have updated default values for optional fields. Yes
Parameters The default cache TTL is now set to 5 minutes No
Parameters The config parameter is deprecated in favor of boto_config Yes
JMESPath Functions The extract_data_from_envelope function is deprecated in favor of query Yes
Types file We have removed the type imports from the shared/types.py file Yes

First Steps

Before you start, we suggest making a copy of your current working project or create a new branch with git.

  1. Upgrade Python to at least v3.8.
  2. Ensure you have the latest version via Lambda Layer or PyPi{target="_blank"}.
  3. Review the following sections to confirm if you need to make changes to your code.

Drop support for Pydantic v1

!!! note "No code changes required"

As of June 30, 2024, Pydantic v1 has reached its end-of-life, and we have discontinued support for this version. We now exclusively support Pydantic v2.

Use Pydantic v2 Migration Guide{target="_blank"} to migrate your custom Pydantic models to v2.

DynamoDBStreamModel in parser

!!! info "This also applies if you're using DynamoDB BatchProcessor{target="_blank"}."

DynamoDBStreamModel now returns native Python types when you access DynamoDB records through Keys, NewImage, and OldImage attributes.

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [aws-lambda-powertools](https://github.com/aws-powertools/powertools-lambda-python) from 2.43.0 to 3.0.0.
- [Release notes](https://github.com/aws-powertools/powertools-lambda-python/releases)
- [Changelog](https://github.com/aws-powertools/powertools-lambda-python/blob/develop/CHANGELOG.md)
- [Upgrade guide](https://github.com/aws-powertools/powertools-lambda-python/blob/develop/docs/upgrade.md)
- [Commits](aws-powertools/powertools-lambda-python@v2.43.0...v3.0.0)

---
updated-dependencies:
- dependency-name: aws-lambda-powertools
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Sep 23, 2024
Copy link
Contributor Author

dependabot bot commented on behalf of github Oct 14, 2024

Superseded by #793.

@dependabot dependabot bot closed this Oct 14, 2024
@dependabot dependabot bot deleted the dependabot/pip/lambda/src/aws-lambda-powertools-3.0.0 branch October 14, 2024 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file python Pull requests that update Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants